package valuecomusa.fijibus.eticket;

import com.zj.wfsdk.WifiCommunication;

/**
 * Created with IntelliJ IDEA.
 * User: fireman
 * Timestamp: 5/16/13
 * Time: 9:52 PM
 * To change this template use File | Settings | File Templates.
 */
public class Declarations
{
    public static final String LongHaul_SharedPrefName = "TemporaryCache_longhaul";
    public static final String ShortHaul_SharedPrefName = "TemporaryCache_shorthaul";
    //--
    public static final String LongHaul_sdCard_Folder = "/eTicket-Longhaul/";
    public static final String ShortHaul_sdCard_Folder = "/eTicket-Shorthaul/";
    //--
    public static final int REQUEST_ENABLE_BT = 2000;
    public static final int BLUETOOTH_NOT_AVAILABLE = -100;
    public static final int BLUETOOTH_NOT_ENABLED = -101;
    public static final int NO_BLUETOOTH_SETUP = -102;
    public static final int BLUETOOTH_UNABLE_CONNECT = -103;
    public static final int BLUETOOTH_CONNECTING = 100;
    public static final int BLUETOOTH_CONNECTED = 101;
    public static final int PRINT_RECEIPT_SUCCESSFUL = 102;
    public static final int PRINT_RECEIPT_WAITING = 103;
    public static final int PRINT_RECEIPT_ERROR = -104;
    public static final int REQUEST_REFUND = 1100;
    public static final int REQUEST_WAIT_TAG = 1100;
    public static final int REQUEST_CASH_TOP_UP = 2001;
    public static final int REQUEST_STUDENT_VOUCHER = 2002;
    public static final int CHECK_IN_TYPE_NO_CARD = 2003;
    public static final int CHECK_IN_TYPE_NORMAL = 2004;
    public static final int CHECK_IN_TYPE_TAP_IN = 2005;
    public static final int REQUEST_REQUIRED_TOP_UP = 2006;
    public static final int REQUEST_MAIN_TOP_UP = 3001;
    public static final int REQUEST_MAIN_CHECK_IN = 3002;
    public static final int REQUEST_MAIN_TAP_IN = 3003;
    public static final int REQUEST_MAIN_NO_CARD_CHECK_IN = 3004;
    public static final int REQUEST_MAIN_REFUND = 3005;
    public static final int REQUEST_SELECT_SEAT = 3006;
	public static final int REQUEST_CHECK_IN_STAGE_MORE = 3007;
    //--
    public static final int TAP_IN_TIMEOUT_SECONDS = 7;
    public static final int TAP_OUT_TIMEOUT_SECONDS = 2;
    //--
    public static final int NO_WIFI_PRINTER_SETUP = -4001;
    public static final int WIFI_PRINTER_CONNECTED = 4001;
    public static final int WIFI_PRINTER_DISCONNECTED = 4002;
    public static final int WIFI_PRINTER_SEND_FAILED = 4003;
    public static final int WIFI_PRINTER_CONNECTED_ERR = 4004;
    public static final int WIFI_PRINTER_CONNECTION_LOST = 4005;
    //--
    public static final byte[] PRINTER_COMMAND_INIT = {0x1B, '@'};
    public static byte[] PRINTER_COMMAND_CUT_PAPER = {0x0A, 0x1B, '@', 0x1D, 0x56, 0x42, 0x18};
    public static byte[] PRINTER_COMMAND_SET_LINE_SPACING_24 = {0x1B, 0x33, 24};
    public static byte[] PRINTER_COMMAND_SET_LINE_SPACING_30 = {0x1B, 0x33, 30};

    public static final String WIFI_PRINTER_TYPE = "wifi";
    public static final String BLUETOOTH_PRINTER_TYPE = "bluetooth";

    public static final int SMART_CARD_STATE_UNKNOWN = 0;
    public static final int SMART_CARD_STATE_ABSENT = 1;
    public static final int SMART_CARD_STATE_PRESENT = 2;
    public static final int SMART_CARD_STATE_SWALLOWED = 3;
    public static final int SMART_CARD_STATE_POWERED = 4;
    public static final int SMART_CARD_STATE_NEGOTIABLE = 5;
    public static final int SMART_CARD_STATE_PECIFIC = 6;
}
